package gsfordservlet.domain;

import java.io.Serializable;

/**
 *  
 * @author Kyungbaek Kim <kyungbaekkim@gmail.com>
 * @version 2012.0202 (YYYY.MMDD)
 * @since 1.6 (Java Version)
 */
public class GsfordEvent implements Serializable{
	private static final long serialVersionUID = 3001L;
	
	private int id;
	private double lblatitude;
	private double lblongitude;
	private double rtlatitude;
	private double rtlongitude;
	private String message;
	private String date;
	
	public void setId(int i){
		this.id = i;
	}
	
	public int getId(){
		return this.id;
	}
	
	public void setLblatitude(double lbl){
		this.lblatitude = lbl;
	}
	
	public double getLblatitude(){
		return this.lblatitude;
	}

	public void setLblongitude(double lbl){
		this.lblongitude = lbl;
	}
	
	public double getLblongitude(){
		return this.lblongitude;
	}

	public void setRtlatitude(double lbl){
		this.rtlatitude = lbl;
	}
	
	public double getRtlatitude(){
		return this.rtlatitude;
	}

	public void setRtlongitude(double lbl){
		this.rtlongitude = lbl;
	}
	
	public double getRtlongitude(){
		return this.rtlongitude;
	}

	public void setMessage(String m){
		this.message = m;
	}
	
	public String getMessage(){
		return this.message;
	}

	public void setDate(String d){
		this.date = d;
	}
	
	public String getDate(){
		return this.date;
	}
		
	public String toString(){
		String s= "Event at "+this.date+" in the region of [( "
		     +this.lblatitude+" , " + this.lblongitude +" ),( "
		     +this.rtlatitude+" , " + this.rtlongitude +" )] with message ( "
		     +this.message+ " ).\n";		
		return s;
	}
}
